package com.server.Example;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * The type Movies example.
 */
public class MoviesExample {
    /**
     * The Order by clause.
     */
    protected String orderByClause;

    /**
     * The Distinct.
     */
    protected boolean distinct;

    /**
     * The Ored criteria.
     */
    protected List<Criteria> oredCriteria;

    /**
     * Instantiates a new Movies example.
     */
    public MoviesExample() {
        oredCriteria = new ArrayList<>();
    }

    /**
     * Sets order by clause.
     *
     * @param orderByClause the order by clause
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     * Gets order by clause.
     *
     * @return the order by clause
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     * Sets distinct.
     *
     * @param distinct the distinct
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     * Is distinct boolean.
     *
     * @return the boolean
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     * Gets ored criteria.
     *
     * @return the ored criteria
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     * Or.
     *
     * @param criteria the criteria
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     * Or criteria.
     *
     * @return the criteria
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     * Create criteria criteria.
     *
     * @return the criteria
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     * Create criteria internal criteria.
     *
     * @return the criteria
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     * Clear.
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * The type Generated criteria.
     */
    protected abstract static class GeneratedCriteria {
        /**
         * The Criteria.
         */
        protected List<Criterion> criteria;

        /**
         * Instantiates a new Generated criteria.
         */
        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        /**
         * Is valid boolean.
         *
         * @return the boolean
         */
        public boolean isValid() {
            return criteria.size() > 0;
        }

        /**
         * Gets all criteria.
         *
         * @return the all criteria
         */
        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        /**
         * Gets criteria.
         *
         * @return the criteria
         */
        public List<Criterion> getCriteria() {
            return criteria;
        }

        /**
         * Add criterion.
         *
         * @param condition the condition
         */
        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        /**
         * Add criterion.
         *
         * @param condition the condition
         * @param value     the value
         * @param property  the property
         */
        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        /**
         * Add criterion.
         *
         * @param condition the condition
         * @param value1    the value 1
         * @param value2    the value 2
         * @param property  the property
         */
        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        /**
         * And movie id is null criteria.
         *
         * @return the criteria
         */
        public Criteria andMovieIdIsNull() {
            addCriterion("Movie_id is null");
            return (Criteria) this;
        }

        /**
         * And movie id is not null criteria.
         *
         * @return the criteria
         */
        public Criteria andMovieIdIsNotNull() {
            addCriterion("Movie_id is not null");
            return (Criteria) this;
        }

        /**
         * And movie id equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieIdEqualTo(Integer value) {
            addCriterion("Movie_id =", value, "movieId");
            return (Criteria) this;
        }

        /**
         * And movie id not equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieIdNotEqualTo(Integer value) {
            addCriterion("Movie_id <>", value, "movieId");
            return (Criteria) this;
        }

        /**
         * And movie id greater than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieIdGreaterThan(Integer value) {
            addCriterion("Movie_id >", value, "movieId");
            return (Criteria) this;
        }

        /**
         * And movie id greater than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("Movie_id >=", value, "movieId");
            return (Criteria) this;
        }

        /**
         * And movie id less than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieIdLessThan(Integer value) {
            addCriterion("Movie_id <", value, "movieId");
            return (Criteria) this;
        }

        /**
         * And movie id less than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieIdLessThanOrEqualTo(Integer value) {
            addCriterion("Movie_id <=", value, "movieId");
            return (Criteria) this;
        }

        /**
         * And movie id in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andMovieIdIn(List<Integer> values) {
            addCriterion("Movie_id in", values, "movieId");
            return (Criteria) this;
        }

        /**
         * And movie id not in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andMovieIdNotIn(List<Integer> values) {
            addCriterion("Movie_id not in", values, "movieId");
            return (Criteria) this;
        }

        /**
         * And movie id between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andMovieIdBetween(Integer value1, Integer value2) {
            addCriterion("Movie_id between", value1, value2, "movieId");
            return (Criteria) this;
        }

        /**
         * And movie id not between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andMovieIdNotBetween(Integer value1, Integer value2) {
            addCriterion("Movie_id not between", value1, value2, "movieId");
            return (Criteria) this;
        }

        /**
         * And movie name is null criteria.
         *
         * @return the criteria
         */
        public Criteria andMovieNameIsNull() {
            addCriterion("Movie_name is null");
            return (Criteria) this;
        }

        /**
         * And movie name is not null criteria.
         *
         * @return the criteria
         */
        public Criteria andMovieNameIsNotNull() {
            addCriterion("Movie_name is not null");
            return (Criteria) this;
        }

        /**
         * And movie name equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieNameEqualTo(String value) {
            addCriterion("Movie_name =", value, "movieName");
            return (Criteria) this;
        }

        /**
         * And movie name not equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieNameNotEqualTo(String value) {
            addCriterion("Movie_name <>", value, "movieName");
            return (Criteria) this;
        }

        /**
         * And movie name greater than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieNameGreaterThan(String value) {
            addCriterion("Movie_name >", value, "movieName");
            return (Criteria) this;
        }

        /**
         * And movie name greater than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieNameGreaterThanOrEqualTo(String value) {
            addCriterion("Movie_name >=", value, "movieName");
            return (Criteria) this;
        }

        /**
         * And movie name less than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieNameLessThan(String value) {
            addCriterion("Movie_name <", value, "movieName");
            return (Criteria) this;
        }

        /**
         * And movie name less than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieNameLessThanOrEqualTo(String value) {
            addCriterion("Movie_name <=", value, "movieName");
            return (Criteria) this;
        }

        /**
         * And movie name like criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieNameLike(String value) {
            addCriterion("Movie_name like", value, "movieName");
            return (Criteria) this;
        }

        /**
         * And movie name not like criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieNameNotLike(String value) {
            addCriterion("Movie_name not like", value, "movieName");
            return (Criteria) this;
        }

        /**
         * And movie name in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andMovieNameIn(List<String> values) {
            addCriterion("Movie_name in", values, "movieName");
            return (Criteria) this;
        }

        /**
         * And movie name not in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andMovieNameNotIn(List<String> values) {
            addCriterion("Movie_name not in", values, "movieName");
            return (Criteria) this;
        }

        /**
         * And movie name between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andMovieNameBetween(String value1, String value2) {
            addCriterion("Movie_name between", value1, value2, "movieName");
            return (Criteria) this;
        }

        /**
         * And movie name not between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andMovieNameNotBetween(String value1, String value2) {
            addCriterion("Movie_name not between", value1, value2, "movieName");
            return (Criteria) this;
        }

        /**
         * And movie name second is null criteria.
         *
         * @return the criteria
         */
        public Criteria andMovieNameSecondIsNull() {
            addCriterion("Movie_Name_second is null");
            return (Criteria) this;
        }

        /**
         * And movie name second is not null criteria.
         *
         * @return the criteria
         */
        public Criteria andMovieNameSecondIsNotNull() {
            addCriterion("Movie_Name_second is not null");
            return (Criteria) this;
        }

        /**
         * And movie name second equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieNameSecondEqualTo(String value) {
            addCriterion("Movie_Name_second =", value, "movieNameSecond");
            return (Criteria) this;
        }

        /**
         * And movie name second not equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieNameSecondNotEqualTo(String value) {
            addCriterion("Movie_Name_second <>", value, "movieNameSecond");
            return (Criteria) this;
        }

        /**
         * And movie name second greater than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieNameSecondGreaterThan(String value) {
            addCriterion("Movie_Name_second >", value, "movieNameSecond");
            return (Criteria) this;
        }

        /**
         * And movie name second greater than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieNameSecondGreaterThanOrEqualTo(String value) {
            addCriterion("Movie_Name_second >=", value, "movieNameSecond");
            return (Criteria) this;
        }

        /**
         * And movie name second less than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieNameSecondLessThan(String value) {
            addCriterion("Movie_Name_second <", value, "movieNameSecond");
            return (Criteria) this;
        }

        /**
         * And movie name second less than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieNameSecondLessThanOrEqualTo(String value) {
            addCriterion("Movie_Name_second <=", value, "movieNameSecond");
            return (Criteria) this;
        }

        /**
         * And movie name second like criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieNameSecondLike(String value) {
            addCriterion("Movie_Name_second like", value, "movieNameSecond");
            return (Criteria) this;
        }

        /**
         * And movie name second not like criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieNameSecondNotLike(String value) {
            addCriterion("Movie_Name_second not like", value, "movieNameSecond");
            return (Criteria) this;
        }

        /**
         * And movie name second in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andMovieNameSecondIn(List<String> values) {
            addCriterion("Movie_Name_second in", values, "movieNameSecond");
            return (Criteria) this;
        }

        /**
         * And movie name second not in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andMovieNameSecondNotIn(List<String> values) {
            addCriterion("Movie_Name_second not in", values, "movieNameSecond");
            return (Criteria) this;
        }

        /**
         * And movie name second between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andMovieNameSecondBetween(String value1, String value2) {
            addCriterion("Movie_Name_second between", value1, value2, "movieNameSecond");
            return (Criteria) this;
        }

        /**
         * And movie name second not between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andMovieNameSecondNotBetween(String value1, String value2) {
            addCriterion("Movie_Name_second not between", value1, value2, "movieNameSecond");
            return (Criteria) this;
        }

        /**
         * And movie director is null criteria.
         *
         * @return the criteria
         */
        public Criteria andMovieDirectorIsNull() {
            addCriterion("Movie_director is null");
            return (Criteria) this;
        }

        /**
         * And movie director is not null criteria.
         *
         * @return the criteria
         */
        public Criteria andMovieDirectorIsNotNull() {
            addCriterion("Movie_director is not null");
            return (Criteria) this;
        }

        /**
         * And movie director equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieDirectorEqualTo(String value) {
            addCriterion("Movie_director =", value, "movieDirector");
            return (Criteria) this;
        }

        /**
         * And movie director not equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieDirectorNotEqualTo(String value) {
            addCriterion("Movie_director <>", value, "movieDirector");
            return (Criteria) this;
        }

        /**
         * And movie director greater than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieDirectorGreaterThan(String value) {
            addCriterion("Movie_director >", value, "movieDirector");
            return (Criteria) this;
        }

        /**
         * And movie director greater than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieDirectorGreaterThanOrEqualTo(String value) {
            addCriterion("Movie_director >=", value, "movieDirector");
            return (Criteria) this;
        }

        /**
         * And movie director less than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieDirectorLessThan(String value) {
            addCriterion("Movie_director <", value, "movieDirector");
            return (Criteria) this;
        }

        /**
         * And movie director less than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieDirectorLessThanOrEqualTo(String value) {
            addCriterion("Movie_director <=", value, "movieDirector");
            return (Criteria) this;
        }

        /**
         * And movie director like criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieDirectorLike(String value) {
            addCriterion("Movie_director like", value, "movieDirector");
            return (Criteria) this;
        }

        /**
         * And movie director not like criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieDirectorNotLike(String value) {
            addCriterion("Movie_director not like", value, "movieDirector");
            return (Criteria) this;
        }

        /**
         * And movie director in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andMovieDirectorIn(List<String> values) {
            addCriterion("Movie_director in", values, "movieDirector");
            return (Criteria) this;
        }

        /**
         * And movie director not in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andMovieDirectorNotIn(List<String> values) {
            addCriterion("Movie_director not in", values, "movieDirector");
            return (Criteria) this;
        }

        /**
         * And movie director between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andMovieDirectorBetween(String value1, String value2) {
            addCriterion("Movie_director between", value1, value2, "movieDirector");
            return (Criteria) this;
        }

        /**
         * And movie director not between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andMovieDirectorNotBetween(String value1, String value2) {
            addCriterion("Movie_director not between", value1, value2, "movieDirector");
            return (Criteria) this;
        }

        /**
         * And movie starring is null criteria.
         *
         * @return the criteria
         */
        public Criteria andMovieStarringIsNull() {
            addCriterion("Movie_starring is null");
            return (Criteria) this;
        }

        /**
         * And movie starring is not null criteria.
         *
         * @return the criteria
         */
        public Criteria andMovieStarringIsNotNull() {
            addCriterion("Movie_starring is not null");
            return (Criteria) this;
        }

        /**
         * And movie starring equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieStarringEqualTo(String value) {
            addCriterion("Movie_starring =", value, "movieStarring");
            return (Criteria) this;
        }

        /**
         * And movie starring not equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieStarringNotEqualTo(String value) {
            addCriterion("Movie_starring <>", value, "movieStarring");
            return (Criteria) this;
        }

        /**
         * And movie starring greater than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieStarringGreaterThan(String value) {
            addCriterion("Movie_starring >", value, "movieStarring");
            return (Criteria) this;
        }

        /**
         * And movie starring greater than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieStarringGreaterThanOrEqualTo(String value) {
            addCriterion("Movie_starring >=", value, "movieStarring");
            return (Criteria) this;
        }

        /**
         * And movie starring less than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieStarringLessThan(String value) {
            addCriterion("Movie_starring <", value, "movieStarring");
            return (Criteria) this;
        }

        /**
         * And movie starring less than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieStarringLessThanOrEqualTo(String value) {
            addCriterion("Movie_starring <=", value, "movieStarring");
            return (Criteria) this;
        }

        /**
         * And movie starring like criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieStarringLike(String value) {
            addCriterion("Movie_starring like", value, "movieStarring");
            return (Criteria) this;
        }

        /**
         * And movie starring not like criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieStarringNotLike(String value) {
            addCriterion("Movie_starring not like", value, "movieStarring");
            return (Criteria) this;
        }

        /**
         * And movie starring in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andMovieStarringIn(List<String> values) {
            addCriterion("Movie_starring in", values, "movieStarring");
            return (Criteria) this;
        }

        /**
         * And movie starring not in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andMovieStarringNotIn(List<String> values) {
            addCriterion("Movie_starring not in", values, "movieStarring");
            return (Criteria) this;
        }

        /**
         * And movie starring between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andMovieStarringBetween(String value1, String value2) {
            addCriterion("Movie_starring between", value1, value2, "movieStarring");
            return (Criteria) this;
        }

        /**
         * And movie starring not between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andMovieStarringNotBetween(String value1, String value2) {
            addCriterion("Movie_starring not between", value1, value2, "movieStarring");
            return (Criteria) this;
        }

        /**
         * And movie price is null criteria.
         *
         * @return the criteria
         */
        public Criteria andMoviePriceIsNull() {
            addCriterion("Movie_price is null");
            return (Criteria) this;
        }

        /**
         * And movie price is not null criteria.
         *
         * @return the criteria
         */
        public Criteria andMoviePriceIsNotNull() {
            addCriterion("Movie_price is not null");
            return (Criteria) this;
        }

        /**
         * And movie price equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMoviePriceEqualTo(BigDecimal value) {
            addCriterion("Movie_price =", value, "moviePrice");
            return (Criteria) this;
        }

        /**
         * And movie price not equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMoviePriceNotEqualTo(BigDecimal value) {
            addCriterion("Movie_price <>", value, "moviePrice");
            return (Criteria) this;
        }

        /**
         * And movie price greater than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMoviePriceGreaterThan(BigDecimal value) {
            addCriterion("Movie_price >", value, "moviePrice");
            return (Criteria) this;
        }

        /**
         * And movie price greater than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMoviePriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("Movie_price >=", value, "moviePrice");
            return (Criteria) this;
        }

        /**
         * And movie price less than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMoviePriceLessThan(BigDecimal value) {
            addCriterion("Movie_price <", value, "moviePrice");
            return (Criteria) this;
        }

        /**
         * And movie price less than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMoviePriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("Movie_price <=", value, "moviePrice");
            return (Criteria) this;
        }

        /**
         * And movie price in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andMoviePriceIn(List<BigDecimal> values) {
            addCriterion("Movie_price in", values, "moviePrice");
            return (Criteria) this;
        }

        /**
         * And movie price not in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andMoviePriceNotIn(List<BigDecimal> values) {
            addCriterion("Movie_price not in", values, "moviePrice");
            return (Criteria) this;
        }

        /**
         * And movie price between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andMoviePriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("Movie_price between", value1, value2, "moviePrice");
            return (Criteria) this;
        }

        /**
         * And movie price not between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andMoviePriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("Movie_price not between", value1, value2, "moviePrice");
            return (Criteria) this;
        }

        /**
         * And movie is show is null criteria.
         *
         * @return the criteria
         */
        public Criteria andMovieIsShowIsNull() {
            addCriterion("Movie_Is_show is null");
            return (Criteria) this;
        }

        /**
         * And movie is show is not null criteria.
         *
         * @return the criteria
         */
        public Criteria andMovieIsShowIsNotNull() {
            addCriterion("Movie_Is_show is not null");
            return (Criteria) this;
        }

        /**
         * And movie is show equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieIsShowEqualTo(Boolean value) {
            addCriterion("Movie_Is_show =", value, "movieIsShow");
            return (Criteria) this;
        }

        /**
         * And movie is show not equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieIsShowNotEqualTo(Boolean value) {
            addCriterion("Movie_Is_show <>", value, "movieIsShow");
            return (Criteria) this;
        }

        /**
         * And movie is show greater than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieIsShowGreaterThan(Boolean value) {
            addCriterion("Movie_Is_show >", value, "movieIsShow");
            return (Criteria) this;
        }

        /**
         * And movie is show greater than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieIsShowGreaterThanOrEqualTo(Boolean value) {
            addCriterion("Movie_Is_show >=", value, "movieIsShow");
            return (Criteria) this;
        }

        /**
         * And movie is show less than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieIsShowLessThan(Boolean value) {
            addCriterion("Movie_Is_show <", value, "movieIsShow");
            return (Criteria) this;
        }

        /**
         * And movie is show less than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieIsShowLessThanOrEqualTo(Boolean value) {
            addCriterion("Movie_Is_show <=", value, "movieIsShow");
            return (Criteria) this;
        }

        /**
         * And movie is show in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andMovieIsShowIn(List<Boolean> values) {
            addCriterion("Movie_Is_show in", values, "movieIsShow");
            return (Criteria) this;
        }

        /**
         * And movie is show not in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andMovieIsShowNotIn(List<Boolean> values) {
            addCriterion("Movie_Is_show not in", values, "movieIsShow");
            return (Criteria) this;
        }

        /**
         * And movie is show between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andMovieIsShowBetween(Boolean value1, Boolean value2) {
            addCriterion("Movie_Is_show between", value1, value2, "movieIsShow");
            return (Criteria) this;
        }

        /**
         * And movie is show not between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andMovieIsShowNotBetween(Boolean value1, Boolean value2) {
            addCriterion("Movie_Is_show not between", value1, value2, "movieIsShow");
            return (Criteria) this;
        }

        /**
         * And movie create is null criteria.
         *
         * @return the criteria
         */
        public Criteria andMovieCreateIsNull() {
            addCriterion("Movie_create is null");
            return (Criteria) this;
        }

        /**
         * And movie create is not null criteria.
         *
         * @return the criteria
         */
        public Criteria andMovieCreateIsNotNull() {
            addCriterion("Movie_create is not null");
            return (Criteria) this;
        }

        /**
         * And movie create equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieCreateEqualTo(Date value) {
            addCriterion("Movie_create =", value, "movieCreate");
            return (Criteria) this;
        }

        /**
         * And movie create not equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieCreateNotEqualTo(Date value) {
            addCriterion("Movie_create <>", value, "movieCreate");
            return (Criteria) this;
        }

        /**
         * And movie create greater than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieCreateGreaterThan(Date value) {
            addCriterion("Movie_create >", value, "movieCreate");
            return (Criteria) this;
        }

        /**
         * And movie create greater than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieCreateGreaterThanOrEqualTo(Date value) {
            addCriterion("Movie_create >=", value, "movieCreate");
            return (Criteria) this;
        }

        /**
         * And movie create less than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieCreateLessThan(Date value) {
            addCriterion("Movie_create <", value, "movieCreate");
            return (Criteria) this;
        }

        /**
         * And movie create less than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andMovieCreateLessThanOrEqualTo(Date value) {
            addCriterion("Movie_create <=", value, "movieCreate");
            return (Criteria) this;
        }

        /**
         * And movie create in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andMovieCreateIn(List<Date> values) {
            addCriterion("Movie_create in", values, "movieCreate");
            return (Criteria) this;
        }

        /**
         * And movie create not in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andMovieCreateNotIn(List<Date> values) {
            addCriterion("Movie_create not in", values, "movieCreate");
            return (Criteria) this;
        }

        /**
         * And movie create between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andMovieCreateBetween(Date value1, Date value2) {
            addCriterion("Movie_create between", value1, value2, "movieCreate");
            return (Criteria) this;
        }

        /**
         * And movie create not between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andMovieCreateNotBetween(Date value1, Date value2) {
            addCriterion("Movie_create not between", value1, value2, "movieCreate");
            return (Criteria) this;
        }
    }

    /**
     * The type Criteria.
     */
    public static class Criteria extends GeneratedCriteria {
        /**
         * Instantiates a new Criteria.
         */
        protected Criteria() {
            super();
        }
    }

    /**
     * The type Criterion.
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        /**
         * Gets condition.
         *
         * @return the condition
         */
        public String getCondition() {
            return condition;
        }

        /**
         * Gets value.
         *
         * @return the value
         */
        public Object getValue() {
            return value;
        }

        /**
         * Gets second value.
         *
         * @return the second value
         */
        public Object getSecondValue() {
            return secondValue;
        }

        /**
         * Is no value boolean.
         *
         * @return the boolean
         */
        public boolean isNoValue() {
            return noValue;
        }

        /**
         * Is single value boolean.
         *
         * @return the boolean
         */
        public boolean isSingleValue() {
            return singleValue;
        }

        /**
         * Is between value boolean.
         *
         * @return the boolean
         */
        public boolean isBetweenValue() {
            return betweenValue;
        }

        /**
         * Is list value boolean.
         *
         * @return the boolean
         */
        public boolean isListValue() {
            return listValue;
        }

        /**
         * Gets type handler.
         *
         * @return the type handler
         */
        public String getTypeHandler() {
            return typeHandler;
        }

        /**
         * Instantiates a new Criterion.
         *
         * @param condition the condition
         */
        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        /**
         * Instantiates a new Criterion.
         *
         * @param condition   the condition
         * @param value       the value
         * @param typeHandler the type handler
         */
        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        /**
         * Instantiates a new Criterion.
         *
         * @param condition the condition
         * @param value     the value
         */
        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        /**
         * Instantiates a new Criterion.
         *
         * @param condition   the condition
         * @param value       the value
         * @param secondValue the second value
         * @param typeHandler the type handler
         */
        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        /**
         * Instantiates a new Criterion.
         *
         * @param condition   the condition
         * @param value       the value
         * @param secondValue the second value
         */
        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}